package com.cdream.bank;

import com.cdream.bank.factory.Bank2ClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author cdream
 * @date 2021/8/29
 */
@FeignClient(value = "cdream-seata-bank2", fallback = Bank2ClientFallback.class)
public interface Bank2Client {
    @GetMapping("/seata/account-info/transfer")
    String transfer(@RequestParam("amount") Double amount);
}

